<?php

namespace Modules\Manager\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class LoginRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
           // 'phone' => 'required|string|min:11|alpha_dash',
            'password' => 'required|string|min:6|',
        ];
    }
    public function messages()
    {
        return [
            'unique'=>':attribute 手机号码已经存在',
            'required'=>':attribute 为必填项',
            'min'=>':attribute 长度最少 :min ,不符合要求',
        ];
        //   return parent::messages(); // TODO: Change the autogenerated stub
    }
}
